package com.lhl.jwt.repository;

import com.lhl.fw.db.repository.BaseJpaRepository;
import com.lhl.jwt.domain.entity.SysUser;
import io.swagger.annotations.Api;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * @className: com.lhl.jwt.repository.UserRepository
 * @description: TODO 类描述
 * @author: king
 * @date: 2020-12-21 15:36
 **/
@Api(tags = "UserRepository", produces = "UserRepository")
@Repository
public interface UserRepository extends BaseJpaRepository<SysUser, String> {

    Optional<SysUser> findByUsername(String username);

    Optional<SysUser> findByOpenId(String openId);

    Optional<SysUser> findByMobile(String mobile);
}
